package com.jy.wms.dao;

import com.jy.wms.common.base.BaseDao;
import com.jy.wms.pojo.WmsShipmentOrderDetailed;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
   * @ClassName: WmsShipmentOrderDetailedMapper.java
   * @Description: TODO(这里用一句话描述这个类的作用)
   * @Author LH
   * @Date Wed Oct 18 14:53:24 GMT+08:00 2017
   */
   public interface WmsShipmentOrderDetailedMapper extends BaseDao<WmsShipmentOrderDetailed> {

    /**
     * 查询当前发运订单下是否有相同的货品
     * @param Ssfyddid   发运订单id
     * @param hpid   货品id
     * @return
     */
    public Integer getMxCountByDdid(@Param("ssfyddid") String Ssfyddid, @Param("hpid") String hpid, @Param("id") String id);





















    /**
    * 插入一条记录
    * @param list 集合
    * @return int
    */
    public Integer baseInsert(@Param("list") List<WmsShipmentOrderDetailed> list);
       public Integer baseInsertByMap(@Param("map") Map<String, Object> map);

   /**
    * 插入一条记录（匹配有值的字段）
    * @param entity 实体对象
    * @return int
    */
   public Integer baseInsertSelective(@Param("WmsShipmentOrderDetailed") WmsShipmentOrderDetailed entity);

   /**
    * 删除（根据主键ID删除）
    * @param fydid 主键 运单id  yong
    * @return int
    */
   public Integer baseDeleteByPrimaryKey(@Param("fydid") String fydid);

   /**
    * 删除（根据ID 批量删除）
    * @param idList 主键ID列表
    * @return int
    */
    public Integer baseDeleteBathPrimaryKeys(@Param("list") List<String> idList);


    /**
    * 分页查询
    * @param entity 实体
    * @return List<WmsShipmentOrderDetailed>
    */
    public List<WmsShipmentOrderDetailed> baseSelectPage(@Param("WmsShipmentOrderDetailed") WmsShipmentOrderDetailed entity);

    /**
    * 查询（根据主键ID查询）
    * @param id 主键ID
    * @return User
    */
    public WmsShipmentOrderDetailed baseSelectByPrimaryKey(@Param("id") String id);

   /**
    * 查询（根据ID 批量查询）
    * @param idList 主键ID列表
    * @return list
    */
    public Integer baseSelectBathPrimaryKeys(@Param("list") List<WmsShipmentOrderDetailed> idList);

   /**
    *修改 （匹配有值的字段）
    * @param entity 主键ID列表
    * @return int
    */
    public Integer baseUpdateByPrimaryKeySelective(@Param("WmsShipmentOrderDetailed") WmsShipmentOrderDetailed entity);

   /**
    *修改（根据主键ID修改）
    * @param entity 主键ID列表
    * @return int
    */
    public Integer baseUpdateByPrimaryKey(@Param("WmsShipmentOrderDetailed") WmsShipmentOrderDetailed entity);


}
